const { json } = require('express');
var express = require('express');
var router = express.Router();
const seatsApi=require("../api/seatings.js")

// 修改座位状态
router.put('/updataStatus', async function (req, res, next) {
    const { _id,status} = req.body;
    const data = await seatsApi.updataStatus({ _id }, { status });
    res.send(data);
  });
  
  
module.exports = router;